<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'recovery-form',
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
        ),
    )); ?>

    <p class="note">Enter the new password.<span class="required"> *</span> are required.</p>

    <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password'); ?>
        <?php echo $form->error($model,'password'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'password_repeat'); ?>
        <?php echo $form->passwordField($model,'password_repeat'); ?>
        <?php echo $form->error($model,'password_repeat'); ?>
    </div>

    <div class = "row buttons">
        <?php echo CHtml::submitButton('Submit')?>
    </div>
    <?php $this->endWidget(); ?>
</div><!--